﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace Aribaccio
{
    /// <summary>
    /// XML数据行
    /// </summary>
    [XmlTypeAttribute(AnonymousType = true)]
    public class ReturnDataRow
    {
        /// <summary>
        /// 数据键
        /// </summary>
        [XmlAttribute("DataKey")]
        public string DataKey { get; set; }

        /// <summary>
        /// 数据类型
        /// </summary>
        [XmlAttribute("DataType")]
        public string DataType { get; set; }

        /// <summary>
        /// 数据连接
        /// </summary>
        [XmlAttribute("DataConnect")]
        public string DataConnect { get; set; }

        /// <summary>
        /// 数据描述
        /// </summary>
        [XmlAttribute("DataCaption")]
        public string DataCaption { get; set; }

        /// <summary>
        /// 数据项集
        /// </summary>
        [XmlElementAttribute("DataItem")]
        public List<ReturnDataItem> DataItem { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        public ReturnDataRow()
        {
            this.DataKey = string.Empty;
            this.DataType = string.Empty;
            this.DataConnect = string.Empty;
            this.DataCaption = string.Empty;
            this.DataItem = new List<ReturnDataItem>();
        }
    }
}
